Drawing Pictures
QuickDraw GX provides two methods of drawing a picture:
In general, you should use the
- You can create a picture shape (by calling the
GXNewPicture
function, by copying an existing picture shape, and so on) and use theGXDrawShape
function to draw the picture.- You can create an array of shape references, and arrays of references to overriding styles, inks, and transforms, and use the
GXDrawPicture
function to draw the corresponding picture.
GXDrawShape
function to draw any QuickDraw GX graphic, including picture shapes. In fact, theGXDrawPicture
function creates a temporary picture shape, uses theGXDrawShape
function to draw it, and then disposes of it. TheGXDrawShape
function is described in the "Shape Objects" chapter of Inside Macintosh: QuickDraw GX Objects.You would typically use the
GXDrawPicture
function only in simple situations--for example, if you knew you wanted to draw a particular picture only once.
Subtopics
- GXDrawPicture
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help